package net.csdn.business.mirror.service;

import net.csdn.business.common.domain.mirror.GithubSourceDto;
import net.csdn.business.mirror.entity.bean.ScheduleTask;

import java.util.List;

public interface ScheduleTaskService {

    ScheduleTask saveTask(ScheduleTask scheduleTask);

    ScheduleTask getLastByName(String name);

    /**
     * 有效定时任务列表
     */
    List<ScheduleTask> validList();

    GithubSourceDto getGithubSource();

    void saveGithubSource(GithubSourceDto sourceDto);

    void rebuild();
}